<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
	<head th:include="header::header"></head>
	<title>普惠商城-个人中心-通用提示</title>
	<link rel="stylesheet" th:href="@{/css/paging.css}">
	<link rel="stylesheet" th:href="@{/css/personal-order-Line.css}">
	<style type="text/css">
	th,td{
		text-align: left!important;
		widows: 160px!important;
		padding-left: 10px;
	}
	.LineTitle .Line_on {
    color: #3f3f3f;
    border-bottom: none;
	
	}
	.integral{
		text-align: left!important;
		color:#cd5041!important;
		width: auto!important;
	}
	.LT1{
		height: 78px!important;
	}
	.LT1 span{
		height: 78px!important;
		line-height: 78px!important;
	}
	.LineTitle a{
		width: 98px;
		height: 38px;
		border:1px solid #cecece;
		border-radius: 4px; 
		display: block;
		color: #3f3f3f;
		text-align: center;
		line-height: 38px;
		float: right;
		margin-top: 19px;
		margin-right: 39px;
		background: #fafafa;
		font-size: 14px;
	}
	.LineTitle a:after{
		   content:".";        
     display:block;        
     height:0;        
     clear:both;        
     visibility:hidden;
	}
	</style>
</head>
<body>
	
	<!-- 顶部导航条开始 -->
	<div  th:include="personal/personalhead::order-personalhead-nav"></div>
	<!-- 顶部导航条结束 -->
	<!-- 顶部搜索栏部分开始 -->
	<div  th:include="personal/personalsearch::order-personalsearch-nav"></div>
	<!--个人中心中间主体框架  -->
	<div class="centerbody personal_middle">
		<!-- 左侧通用导航栏 -->
		<div class="personal_middle_nav" th:include="commonfragment::order-left-menu-nav"></div>
		<div class="personal_middle_main">
			<div class="personal_middle_main_tit">
				<span>资产中心</span>><span>我的积分</span>
			</div>
			<div data-role="page">
        		<div data-role = "content-floud">
					<div class="publicBox" style="min-height: 0px">
						<div class="LineTitle clear LT1">
						<span>可用积分:</span>
						<span th:text="${#numbers.formatDecimal(enablescore, 1, 2)}" class="integral">0</span>
						<span>待用积分:</span>
						<span th:text="${#numbers.formatDecimal(standbyscore, 1, 2)}"  class="integral">0</span>
						<a th:href="@{/score/memberInfo?aNum=3}">提现</a>
						</div>
					</div>
				</div>
			</div>
			<div data-role="page">
        		<div data-role = "content-floud">
					<div class="publicBox">
						<div class="LineTitle clear"><span>积分明细</span></div>
						<div class="LineCon">
							<div class="LineList">
								<table class="TabeCon">
									<tr>
										<th width="160">时间</th>
										<th>来源</th>
										<th>存入</th>
										<th>支出</th>
										<th>手续费</th>
										<th width="80">备注</th>
									</tr>
									<tr th:each="score:${scoreList}">
					　　　　　　　　　	<td th:text="${#dates.format(score.createTime, 'yyyy-MM-dd HH:mm:ss')}"></td>
										<td th:text="${score.source}"></td>
										<td><span th:if="${score.score} > 0" th:text="${#numbers.formatDecimal(score.score, 1, 2)}"></span></td>
										<td><span th:if="${score.score} < 0" th:text="${#numbers.formatDecimal(score.score, 1, 2)}"></span></td>
										<td><sapn th:text="${#numbers.formatDecimal(score.fee, 1, 2)}"></sapn></td>
										<td th:text="${score.remark}" th:title="${score.remark}"></td>
									</tr>
								</table><!--列表 over-->
							</div>
							</div>
						</div><!--LineConf-->
						<!--分页-->
						<div class="tcdPageCode"></div>
						<!--分页 over-->
					</div><!--线下订单-->
				</div>
   			 </div>
			<!-- 全部订单 -->
			
		</div>
		<div style="clear:both;"></div>
	</div>
	<!-- 页面底部 -->
	<div th:include="footer::footer"></div>

</body>
<script type="text/javascript" th:src="@{/js/jquery.page.js}"></script>
<script th:inline="javascript">
$(function(){
	$('#socre_iden').css('display','block');
	$('a.personal_box_tit_link').eq(1).addClass('banner_choose').siblings().removeClass('banner_choose');
	/*tab标签切换*/
	function tabs(tabTit,on,tabCon){
		$(tabCon).each(function(){
			$(this).children().eq(0).show();
		});
		$(tabTit).each(function(){
			$(this).children().eq(0).addClass(on);
		});
		$(tabTit).children().click(function(){
			$(this).addClass(on).siblings().removeClass(on);
			var index = $(tabTit).children().index(this);
			$(tabCon).children().eq(index).show().siblings().hide();
		});
	}
	tabs(".LineTitle","Line_on",".LineCon");
	/*分页*/
	$(".tcdPageCode").createPage({
		pageCount:Math.ceil([[${count}]] / [[${pageSize}]]),
		current:[[${pageNum}]],
		backFn:function(current){
            window.location.href = Common.generateUrl(
                "/score/list",
                {
                    pageNum: current,
					aNum : 3
                }
            );
		}
	});
})
</script>
</html>